package com.ssd.api.user;


import com.ssd.api.user.dto.AddressBook;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户服务-地址接口
 */
@FeignClient(name = "user-service", url = "http://localhost:9006/user-service/inner/address")
public interface AddressApi {


    /**
     * 查询当前登录用户的默认地址
     * @return 地址信息
     */
    @GetMapping("/default")
    public AddressBook getAddress(@RequestParam("address") Long address);
}
